package com.rent.apartment.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rent.apartment.domain.ApartmentInfo;
import org.apache.ibatis.annotations.Param;

/**
 * 公寓信息Mapper接口
 *
 * @author cooper
 * @date 2024-10-09
 */
public interface ApartmentInfoMapper extends BaseMapper<ApartmentInfo> {
    /**
     * 查询公寓信息
     *
     * @param id 公寓信息主键
     * @return 公寓信息
     */
    public ApartmentInfo selectApartmentInfoById(Long id);

    /**
     * 查询公寓信息列表
     *
     * @param apartmentInfo 公寓信息
     * @return 公寓信息集合
     */
    public List<ApartmentInfo> selectApartmentInfoList(ApartmentInfo apartmentInfo);

    /**
     * 新增公寓信息
     *
     * @param apartmentInfo 公寓信息
     * @return 结果
     */
    public int insertApartmentInfo(ApartmentInfo apartmentInfo);

    /**
     * 修改公寓信息
     *
     * @param apartmentInfo 公寓信息
     * @return 结果
     */
    public int updateApartmentInfo(ApartmentInfo apartmentInfo);

    /**
     * 删除公寓信息
     *
     * @param id 公寓信息主键
     * @return 结果
     */
    public int deleteApartmentInfoById(Long id);

    /**
     * 批量删除公寓信息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteApartmentInfoByIds(Long[] ids);

    //10/16
    public int updateApartmentStatus(@Param("apartmentId") Long apartmentId, @Param("status") String status);

}
